import request from "@/utils/request";

export function getTopics(params) {
    return request({
        url: '/topics/page',
        method: 'get',
        params,
    })
}
export function addTopics(data) {
    return request({
        url: '/topics',
        method: 'post',
        data,
    })
}
export function updateTopics(data) {
    return request({
        url: '/topics',
        method: 'put',
        data,
    })
}
export function deleteTopics(data) {
    return request({
        url: '/topics',
        method: 'delete',
        data,
    })
}
